package com.dx.common.table.ppt;

/**
 * Bis_bomId entity provides the base persistence definition of the
 * Bis_bomId entity. @author MyEclipse Persistence Tools
 */

public class Bis_bomId implements java.io.Serializable {

	// Fields

	private String mdl_id_fk;
	private String mtrl_prod_id_fk;
	private String mdl_mtrl_seq_id;

	// Constructors

	/** default constructor */
	public Bis_bomId() {
	}

	/** full constructor */
	public Bis_bomId(String mdl_id_fk, String mtrl_prod_id_fk,
			String mdl_mtrl_seq_id) {
		this.mdl_id_fk = mdl_id_fk;
		this.mtrl_prod_id_fk = mtrl_prod_id_fk;
		this.mdl_mtrl_seq_id = mdl_mtrl_seq_id;
	}

	// Property accessors

	public String getMdl_id_fk() {
		return this.mdl_id_fk;
	}

	public void setMdl_id_fk(String mdl_id_fk) {
		this.mdl_id_fk = mdl_id_fk;
	}

	public String getMtrl_prod_id_fk() {
		return this.mtrl_prod_id_fk;
	}

	public void setMtrl_prod_id_fk(String mtrl_prod_id_fk) {
		this.mtrl_prod_id_fk = mtrl_prod_id_fk;
	}

	public String getMdl_mtrl_seq_id() {
		return this.mdl_mtrl_seq_id;
	}

	public void setMdl_mtrl_seq_id(String mdl_mtrl_seq_id) {
		this.mdl_mtrl_seq_id = mdl_mtrl_seq_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_bomId))
			return false;
		Bis_bomId castOther = (Bis_bomId) other;

		return ((this.getMdl_id_fk() == castOther.getMdl_id_fk()) || (this
				.getMdl_id_fk() != null && castOther.getMdl_id_fk() != null && this
				.getMdl_id_fk().equals(castOther.getMdl_id_fk())))
				&& ((this.getMtrl_prod_id_fk() == castOther
						.getMtrl_prod_id_fk()) || (this.getMtrl_prod_id_fk() != null
						&& castOther.getMtrl_prod_id_fk() != null && this
						.getMtrl_prod_id_fk().equals(
								castOther.getMtrl_prod_id_fk())))
				&& ((this.getMdl_mtrl_seq_id() == castOther
						.getMdl_mtrl_seq_id()) || (this.getMdl_mtrl_seq_id() != null
						&& castOther.getMdl_mtrl_seq_id() != null && this
						.getMdl_mtrl_seq_id().equals(
								castOther.getMdl_mtrl_seq_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMdl_id_fk() == null ? 0 : this.getMdl_id_fk().hashCode());
		result = 37
				* result
				+ (getMtrl_prod_id_fk() == null ? 0 : this.getMtrl_prod_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getMdl_mtrl_seq_id() == null ? 0 : this.getMdl_mtrl_seq_id()
						.hashCode());
		return result;
	}

}